/**
 * 我的成就
 **/
package com.kitchen.ui.dialog.achievement
{
	import com.kitchen.model.Vo.AccountVo;
	import com.kitchen.ui.box9grid.BetweenBox;
	import com.kitchen.ui.box9grid.InnerBox;
	import com.kitchen.ui.box9grid.OuterBox;
	
	import flash.display.BitmapData;
	import com.kitchen.ui.dialog.AbstractDialog;
	import com.kitchen.ui.dialog.DialogHeader;

	public class MyAchievementDialog extends AbstractDialog
	{
		public function MyAchievementDialog(mainSkin:BitmapData, dialogSkin:BitmapData, account:AccountVo)
		{
			super(mainSkin, dialogSkin, account);
			this.name = 'myachieve';
		}
		
		override protected function layout(cdata:Object):void{
			//background
			this.w = 680;
			this.h = 580;
			var out:OuterBox = new OuterBox(this.dialogSkin, 680, 580);
			var between:BetweenBox = new BetweenBox(this.dialogSkin, 657, 480);
			var inner:InnerBox = new InnerBox(this.dialogSkin, 635, 400);
			out.x = 0;
			out.y = 20;
			between.x = 10;
			between.y = 105;
			inner.x = 20;
			inner.y = 150;
			this.addChild(out);
			this.addChild(between);
			this.addChild(inner);
			//header
			var head:DialogHeader = new DialogHeader(this.mainSkin, this.dialogSkin, 'myachieve');
			head.x = (680-head.w)/2;
			head.y = 0;
			this.addChild(head);
			//body
			this.addCloseButton();
		}
		
	}
}